﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FJERP.BLL;


namespace FJERP
{
    public partial class PurchaseIntoShow : System.Web.UI.Page
    {
        PurchaseBLL bll = new PurchaseBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Loadxiala();
            }
        }
        public void Loadxiala()
        {
            this.DropDownList1.DataSource = bll.GetSupplierList();
            this.DropDownList1.DataValueField = "Supplier_Id";
            this.DropDownList1.DataTextField = "Supplier_Name";
            this.DropDownList1.DataBind();
            this.DropDownList2.DataSource = bll.GetEmployeeList();
            this.DropDownList2.DataValueField = "Employee_Id";
            this.DropDownList2.DataTextField = "Employee_Name";
            this.DropDownList2.DataBind();
            this.DropDownList3.DataSource = bll.GetWareHoseList();
            this.DropDownList3.DataValueField = "WareHose_Id";
            this.DropDownList3.DataTextField = "WareHose_Name";
            this.DropDownList3.DataBind();
        }
    }
}